﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace BBECServiceBusAdapter
{
    [DataContract(Name="DesignationData", Namespace=Helper.Namespace)]
    public sealed class DesignationDataContract : ContractBase

    {
        #region Data Members

        //Attributes
        //STATUS
        
        
        
        
        //Required


        [DataMember(IsRequired = false)]
        public string Description = "";
        [DataMember(IsRequired = false)]
        public string SubReg1  ="";
        
        //[DataMember(IsRequired = false)]
        //DECLARE @LookupId nvarchar(255) --Also ("Segment 1" or "ITEM_NUMBER") UserId
        
        [DataMember(IsRequired = false)]
        public string Priority  = "";
        [DataMember(IsRequired = false)]
        public string ItemCategorySegment2 = "";

        [DataMember(IsRequired = false)]
        public string FundraisingTeam = "";

        //DECLARE @IsActive bit
        //[DataMember(IsRequired = false)]
        //DECLARE @IsRevenueDesignation bit
        //[DataMember(IsRequired = false)]

        [DataMember(IsRequired = false)]
        public Decimal Goal;
        [DataMember(IsRequired = false)]
        public Decimal ReceivedAmount;
        [DataMember(IsRequired = false)]
        public Decimal RemainingAmount;


        
        [DataMember(IsRequired = false)]
        public DateTime? StartDate;
        [DataMember(IsRequired = false)]
        public DateTime? EndDate;



 /*       [DataMember(IsRequired = false)]
        public string PublicName = "";

        [DataMember(IsRequired = false)]
        public string ProjectCode = "";

        [DataMember(IsRequired = false)]
        public string DesignationLevel1 = "";
        
        [DataMember(IsRequired = false)]
        public string DesignationLevel2 = "";

        [DataMember(IsRequired = false)]
        public Boolean? IsRevenueDesignation;

        */

        [DataMember(IsRequired = false)]
        public List<ConstituentDataContractExtensions.AlternateIDData> AlternateIDs;



        //Status = active or inactive - translate to boolean If it's active, mark active, if inactove mark inactive



        /*[DataMember(IsRequired = false)]
        public string DesignationLevel3 = "";
        [DataMember(IsRequired = false)]
        public string DesignationLevel4 = "";
        [DataMember(IsRequired = false)]
        public string DesignationLevel5 = "";*/

        //[DataMember(IsRequired = false)]
        //public string DesignationReportCode1 = "";

        //[DataMember(IsRequired = false)]
        //public string DesignationReportCode2 = "";
        /*[DataMember(IsRequired = false)]
        public string DesignationReportCode3 = "";
        [DataMember(IsRequired = false)]
        public string DesignationReportCode4 = "";
        [DataMember(IsRequired = false)]
        public string DesignationReportCode5 = "";*/

        //[DataMember(IsRequired = true)]
        //public string LookupId = ""; //Primary Key from DV


        #endregion


    }
}
